package com.example.springboot01.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot01.entity.Student;
import com.example.springboot01.entity.Teacher;
import com.example.springboot01.entity.User;
import com.example.springboot01.req.PageQueryReq;

import javax.servlet.http.HttpSession;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface StudentService extends IService<Student> {

    Student getByUserId(Serializable userId);

    void addStudent(Student s);

    List<Student> queryByClass(Integer cId);

    List<Student> queryByClasses(Collection<Integer> cId);

    IPage<Student> getPage(PageQueryReq pageQueryReq, HttpSession session);

    List<Student> listWithDetail(String search);

}
